i try to install airflow to my computer, but when i run commanline start with airlow(ex: airflow db init, airflow scheduler), i get result:
Traceback (most recent call last):
File "/home/linhnq/.local/bin/airflow", line 5, in <module>
from airflow.__main__ import main
File "/home/linhnq/.local/lib/python3.10/site-packages/airflow/__init__.py", line 46, in <module>
settings.initialize()
File "/home/linhnq/.local/lib/python3.10/site-packages/airflow/settings.py", line 567, in initialize
configure_orm()
File "/home/linhnq/.local/lib/python3.10/site-packages/airflow/settings.py", line 273, in configure_orm
engine = create_engine(SQL_ALCHEMY_CONN, connect_args=connect_args, **engine_args)
File "<string>", line 2, in create_engine
File "/home/linhnq/.local/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py", line 309, in warned
return fn(*args, **kwargs)
File "/home/linhnq/.local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 522, in create_engine
entrypoint = u._get_entrypoint()
File "/home/linhnq/.local/lib/python3.10/site-packages/sqlalchemy/engine/url.py", line 655, in _get_entrypoint
cls = registry.load(name)
File "/home/linhnq/.local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 343, in load
raise exc.NoSuchModuleError(
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:mysql
i use Ubuntu 22.04.1 LTS and here is mysql version i installed:
+--------------------------+-------------------------+
| Variable_name | Value |
+--------------------------+-------------------------+
| admin_tls_version | TLSv1.2,TLSv1.3 |
| immediate_server_version | 999999 |
| innodb_version | 8.0.30 |
| original_server_version | 999999 |
| protocol_version | 10 |
| replica_type_conversions | |
| slave_type_conversions | |
| tls_version | TLSv1.2,TLSv1.3 |
| version | 8.0.30-0ubuntu0.22.04.1 |
| version_comment | (Ubuntu) |
| version_compile_machine | x86_64 |
| version_compile_os | Linux |
| version_compile_zlib | 1.2.12 |
+--------------------------+-------------------------+
and airflow.cnf i get setup like this: (i created user airflow:password)
- executor = LocalExecutor
- sql_alchemy_conn = mysql://airflow:password#localhost/airflowdb
- broker_url = pyamqp://airflow:password#localhost:5672/myvhost
- result_backend = db+mysql://airflow:password#localhost:3306/airflowdb
- flower_basic_auth = user1:password1
how can i fix it?
thanks
Related
I seem to be having an issue when running a bash script in windows WSL2 / Ubantu, but have no issue if I run the mysql command line with the same params.
This is a fairly straight forward script, albeit , I am new to bash scripting.
#!/bin/bash
PROPERTY_FILE="MySQLDB_glenn.properties"
SCRIPTS_DIR="/home/glenn/scripts/"
echo $SCRIPTS_DIR$PROPERTY_FILE
WSL_HOST_IP=$(ipconfig.exe | awk '/WSL/ {getline; getline; getline; getline; print substr($14, 1, length($14)-1)}')
ALT_WSL_HOST=$WSL_HOST_IP
function atestfunction()
{
myTest=$(echo "This is a test")
echo $myTest
}
function getProperty()
{
PROP_KEY=$1
PROP_VALUE=$(cat $SCRIPTS_DIR$PROPERTY_FILE | grep $PROP_KEY | cut -d'=' -f2)
echo $PROP_VALUE
}
echo "# Reading properties from $PROPERTY_FILE = " $SCRIPTS_DIR$PROPERTY_FILE
DB_USER=$(getProperty "db.username")
DB_PASS=$(getProperty "db.password")
DB_HOST=$(getProperty "db.hostname")
DB_DEFAULT=$(getProperty "db.defaultdb")
echo $DB_USER
echo $DB_PASS
echo $DB_HOST
echo $DB_DEFAULT
echo $ALT_WSL_HOST
echo "Selecting from DB " $DB_DEFAULT
mysql -u$DB_USER -p$DB_PASS -h$ALT_WSL_HOST $DB_DEFAULT -e "use test1; select * from products;"
I setup two versions of the account user , granting it all and with the ability to access via localhost and the second account via 172.0.0.0/255.0.0.0 to handle the fact that WSL comes up with different addresses on reboot.
the variable $ALT_WSL_HOST value is 172.25.208.1 (as I debug it as I type this)
In the Bash script debugger (VS Code) or while running the script ./simpleDBselect.sh, i get
ERROR 1045 (28000): Access denied for user 'wsl_root
'#'172.25.220.8' (using password: YES)
The same mysql command in the same session (i just invoked it in the Terminal Tab of VS Code) or quitting VS code , I get:
mysql -uwsl_root -pxxx-xxxxx -h172.25.208.1 test1 -e "use test1; select * from products;"
mysql: [Warning] Using a password on the command line interface can be insecure.
+-----------+----------+-------------+---------------+---------+-------------+-----------+-------------+
| productID | widgetid | productName | productNumber | color | inhouseCost | listPrice | productSize |
+-----------+----------+-------------+---------------+---------+-------------+-----------+-------------+
| 1 | 101 | Widget1 | s1001 | Yellow | 25.00 | 40.00 | medium |
| 2 | 102 | Widget2 | s1002 | Black | 27.00 | 45.00 | small |
| 3 | 103 | Widget3 | s1003 | Black | 28.00 | 40.00 | medium |
| 4 | 104 | Widget4 | s1004 | Red | 21.00 | 34.00 | small |
| 5 | 105 | Widget5 | s1005 | Green | 15.00 | 26.00 | large |
| 6 | 106 | Widget6 | s1006 | Magenta | 40.00 | 75.00 | large |
| 7 | 107 | Widget7 | s1007 | Orange | 50.00 | 85.00 | medium |
| 8 | 108 | Widget8 | s1008 | Blue | 39.00 | 55.00 | small |
| 9 | 109 | Widget9 | s1009 | Gold | 189.00 | 300.00 | large |
+-----------+----------+-------------+---------------+---------+-------------+-----------+-------------+
Does anyone know what I might be missing. I have read loads of documentation and think I have the DB accounts setup correctly for the variable hosts. Note,I have also tried '%' as is the default wildcard . Should I just install MySQL in the ubantu running in WSL as opposed to the windows install. Also note that I am cognizant that WSL running its own virtual ip address , hence why i'm using WSL_HOST_IP=$(ipconfig.exe | awk '/WSL/ {getline; getline; getline; getline; print substr($14, 1, length($14)-1)}').
Any help would be appreciated as I'm at my feeble wits end :)
Best Regards,
Glenn Firester
see above description for my attempts, but wsl_root has DBA and all grants to the tables in db test1
I want to get transaction times from a website https://explorer.flitsnode.app/address/FieXP1irJKvmWUiqV18AFdDZD8bgWvfRiC/
but when I make a request for html I don't get full site data.
I get everything except the contents of the table I need - "Transactions of address"
I have the css selector for the table #txaddr but it returns just the top (Timestamp, Block, Hash, ..)
My code so far - I added a few comments to it.
import bs4
from urllib.request import Request, urlopen
from bs4 import BeautifulSoup
def NodeRewardTime(link):
req = Request(link,headers={'User-Agent': 'Mozilla/5.0'})
webpage = urlopen(req).read()
soup = bs4.BeautifulSoup(webpage, 'html5lib') # pip install html5lib
all_results = soup.select("#txaddr") # CSS selector for the entire table
try:
[print(x.text) for x in all_results] # prints results
except:
print("No data to show")
link = "https://explorer.flitsnode.app/address/FieXP1irJKvmWUiqV18AFdDZD8bgWvfRiC/"
NodeRewardTime(link)
input("End")
Output: TimestampBlockHashAmount (FLS)Balance (FLS)TX Type [End]
If we inspect the page, you see that the data is loaded in JSON format via this site.
The following will print the data in a table format:
from urllib.request import Request, urlopen
from bs4 import BeautifulSoup
import json
def NodeRewardTime(link):
req = Request(link, headers={"User-Agent": "Mozilla/5.0"})
webpage = urlopen(req).read()
soup = BeautifulSoup(webpage, "html5lib")
json_data = json.loads(soup.text)
return "\n".join(" | ".join(i) for i in json_data["data"])
URL = "https://explorer.flitsnode.app/get_address_transactions?address=fiexp1irjkvmwuiqv18afddzd8bgwvfric"
print(NodeRewardTime(URL))
Outputs:
2020-08-14 00:00 | 562586 | cfc5fc6e81c0f31aaac85c2e3e6e727ce00cfdf4b938e7092472ce6f549b7fbf | 3.67999999 | 1003.67999999 | MASTERNODE
2020-08-13 16:37 | 562211 | 68f08eefef36aecd33645b13f3c95d0c3160ade5bc180b1f3b32ced670d97bef | -3.67999999 | 1000.00000000 | OUT
2020-08-12 18:58 | 561193 | 31958481f27f3d40ef5df4f437169f169f58b7b9556cc8ea5c381d4daf6d96b2 | 3.67999999 | 1003.67999999 | MASTERNODE
2020-08-11 22:00 | 560155 | 7ae289b8250fd94af10aa5e0a884149f548c7e3d1c6e05e7d78ac80284b3833a | -36.79999990 | 1000.00000000 | OUT
2020-08-11 15:02 | 559828 | 618185e5f12436e4c5fc97d45d36098ca56662780bbd037abfedfa316219571e | 3.67999999 | 1036.79999990 | MASTERNODE
2020-08-10 14:52 | 558579 | 3afeaa5e9e9130f03fac0303de680d790d075f1bbbae95e730bcf90fc33b82b9 | 3.67999999 | 1033.11999991 | MASTERNODE
2020-08-09 12:37 | 557281 | 0943156c88cc667502aef84b8143ba89f84cc069e342c86e028cae034abf3b36 | 3.67999999 | 1029.43999992 | MASTERNODE
2020-08-08 12:10 | 556044 | 31f56c608a02ae8f90b0e113dc60a4f35eec86b91c0be7242c4409bab2f4ece2 | 3.67999999 | 1025.75999993 | MASTERNODE
2020-08-07 09:07 | 554717 | 3e3e73db2491dec2071088a080a86567d769a6979c0304bfc26bfa194bfa8e5f | 3.67999999 | 1022.07999994 | MASTERNODE
2020-08-06 07:47 | 553471 | 92605aff1c7ee92302323b22ea4b2d812e71afa3e07be8a80e8a62d3f7281314 | 3.67999999 | 1018.39999995 | MASTERNODE
2020-08-05 04:47 | 552123 | 286261dc57262a2d2e34e1e3fd8c008946d6a08cf8a00617b2b66c14af3f2a82 | 3.67999999 | 1014.71999996 | MASTERNODE
2020-08-04 02:14 | 550794 | ccc75788a0b2c1b441fe9f2c3594c39ce9dcc90583112d795fd3666942c0014d | 3.67999999 | 1011.03999997 | MASTERNODE
2020-08-02 22:32 | 549388 | d2587f7a8adf268b881a22cf8b441382093916a95ab1c9f2f91c8a0ce59a281b | 3.67999999 | 1007.35999998 | MASTERNODE
2020-08-01 23:04 | 548196 | 1279fada75e56f2397288ce9eb4fcc7d04d10b15ea646189df75a117a2585707 | 3.67999999 | 1003.67999999 | MASTERNODE
... and on
You have to take the whole row and clear it up with loops so you show on output what you need only.
Trying to install the package communications-1.2.1.tar.gz on my windows-64-system leads to the following error message. What do I have to do to get it running?
genqamdemod.cc: In function 'octave_value_list Fgenqamdemod(const octave_value_list&, int)':
genqamdemod.cc:39:23: warning: 'int empty_arg(const char*, octave_idx_type, octave_idx_type)' is deprecated (declared at C:\Program
s\Octave\include\octave-4.2.1\octave\../octave/utils.h:58): use 'octave_value::is_empty' instead [-Wdeprecated-declarations]
int arg_is_empty1 = empty_arg ("genqamdemod", nr1, nc1);
^
genqamdemod.cc:39:57: warning: 'int empty_arg(const char*, octave_idx_type, octave_idx_type)' is deprecated (declared at C:\Program
s\Octave\include\octave-4.2.1\octave\../octave/utils.h:58): use 'octave_value::is_empty' instead [-Wdeprecated-declarations]
int arg_is_empty1 = empty_arg ("genqamdemod", nr1, nc1);
^
In file included from galois.h:24:0,
from galois-def.cc:21:
C:\Programs\Octave\include\octave-4.2.1\octave\../octave/config.h:28:2: warning: #warning "config.h has been deprecated; there is n
o need to include it directly" [-Wcpp]
#warning "config.h has been deprecated; there is no need to include it directly"
^
In file included from galois-def.cc:21:0:
galois.h:25:28: fatal error: octave/base-lu.h: No such file or directory
#include <octave/base-lu.h>
^
compilation terminated.
make: *** [galois-def.o] Error 1
make: Entering directory `/tmp/oct-2OnYWD/communications-1.2.1/src'
C:/Programs/Octave/bin/mkoctfile-4.2.1.exe -DGALOIS_DISP_PRIVATES __errcore__.cc -o __errcore__.oct
C:/Programs/Octave/bin/mkoctfile-4.2.1.exe -DGALOIS_DISP_PRIVATES __gfweight__.cc -o __gfweight__.oct
C:/Programs/Octave/bin/mkoctfile-4.2.1.exe -DGALOIS_DISP_PRIVATES cyclgen.cc -o cyclgen.oct
C:/Programs/Octave/bin/mkoctfile-4.2.1.exe -DGALOIS_DISP_PRIVATES cyclpoly.cc -o cyclpoly.oct
C:/Programs/Octave/bin/mkoctfile-4.2.1.exe -DGALOIS_DISP_PRIVATES genqamdemod.cc -o genqamdemod.oct
C:/Programs/Octave/bin/mkoctfile-4.2.1.exe -DGALOIS_DISP_PRIVATES -c galois-def.cc -o galois-def.o
make: Leaving directory `/tmp/oct-2OnYWD/communications-1.2.1/src'
pkg: error running `make' for the communications package.
error: called from
configure_make at line 95 column 9
install at line 192 column 7
pkg at line 394 column 9
The following table shows the result of pkg list.
Package Name | Version | Installation directory
---------------------+---------+-----------------------
control | 3.0.0 | C:\Programs\Octave\share\octave\packages\control-3.0.0
data-smoothing | 1.3.0 | C:\Programs\Octave\share\octave\packages\data-smoothing-1.3.0
database | 2.4.2 | C:\Programs\Octave\share\octave\packages\database-2.4.2
dataframe | 1.1.0 | C:\Programs\Octave\share\octave\packages\dataframe-1.1.0
dicom | 0.1.1 | C:\Programs\Octave\share\octave\packages\dicom-0.1.1
financial | 0.5.0 | C:\Programs\Octave\share\octave\packages\financial-0.5.0
fits | 1.0.7 | C:\Programs\Octave\share\octave\packages\fits-1.0.7
fuzzy-logic-toolkit | 0.4.5 | C:\Programs\Octave\share\octave\packages\fuzzy-logic-toolkit-0.4.5
ga | 0.10.0 | C:\Programs\Octave\share\octave\packages\ga-0.10.0
general | 2.0.0 | C:\Programs\Octave\share\octave\packages\general-2.0.0
generate_html | 0.1.13 | C:\Programs\Octave\share\octave\packages\generate_html-0.1.13
geometry | 2.1.1 | C:\Programs\Octave\share\octave\packages\geometry-2.1.1
gsl | 2.0.0 | C:\Programs\Octave\share\octave\packages\gsl-2.0.0
image | 2.6.1 | C:\Programs\Octave\share\octave\packages\image-2.6.1
instrument-control | 0.2.3 | C:\Programs\Octave\share\octave\packages\instrument-control-0.2.3
interval | 2.1.0 | C:\Programs\Octave\share\octave\packages\interval-2.1.0
io | 2.4.5 | C:\Programs\Octave\share\octave\packages\io-2.4.5
linear-algebra | 2.2.2 | C:\Programs\Octave\share\octave\packages\linear-algebra-2.2.2
lssa | 0.1.2 | C:\Programs\Octave\share\octave\packages\lssa-0.1.2
ltfat | 2.2.0 | C:\Programs\Octave\share\octave\packages\ltfat-2.2.0
mapping | 1.2.1 | C:\Programs\Octave\share\octave\packages\mapping-1.2.1
miscellaneous | 1.2.1 | C:\Programs\Octave\share\octave\packages\miscellaneous-1.2.1
nan | 3.1.2 | C:\Programs\Octave\share\octave\packages\nan-3.1.2
netcdf | 1.0.11 | C:\Programs\Octave\share\octave\packages\netcdf-1.0.11
nurbs | 1.3.10 | C:\Programs\Octave\share\octave\packages\nurbs-1.3.10
ocs | 0.1.5 | C:\Programs\Octave\share\octave\packages\ocs-0.1.5
odepkg | 0.8.5 | C:\Programs\Octave\share\octave\packages\odepkg-0.8.5
optim | 1.5.2 | C:\Programs\Octave\share\octave\packages\optim-1.5.2
quaternion | 2.4.0 | C:\Programs\Octave\share\octave\packages\quaternion-2.4.0
queueing | 1.2.5 | C:\Programs\Octave\share\octave\packages\queueing-1.2.5
signal | 1.3.2 | C:\Programs\Octave\share\octave\packages\signal-1.3.2
sockets | 1.2.0 | C:\Programs\Octave\share\octave\packages\sockets-1.2.0
sparsersb | 1.0.2 | C:\Programs\Octave\share\octave\packages\sparsersb-1.0.2
specfun | 1.1.0 | C:\Programs\Octave\share\octave\packages\specfun-1.1.0
splines | 1.3.2 | C:\Programs\Octave\share\octave\packages\splines-1.3.2
statistics | 1.3.0 | C:\Programs\Octave\share\octave\packages\statistics-1.3.0
stk | 2.3.4 | C:\Programs\Octave\share\octave\packages\stk-2.3.4
strings | 1.2.0 | C:\Programs\Octave\share\octave\packages\strings-1.2.0
struct | 1.0.14 | C:\Programs\Octave\share\octave\packages\struct-1.0.14
tisean | 0.2.3 | C:\Programs\Octave\share\octave\packages\tisean-0.2.3
tsa | 4.4.5 | C:\Programs\Octave\share\octave\packages\tsa-4.4.5
video | 1.2.3 | C:\Programs\Octave\share\octave\packages\video-1.2.3
windows | 1.2.4 | C:\Programs\Octave\share\octave\packages\windows-1.2.4
zeromq | 1.2.1 | C:\Programs\Octave\share\octave\packages\zeromq-1.2.1
I believe just a re-installation will do --> https://www.gnu.org/software/octave/#install
following the instructions exactly.
Following documentation on how to set up a MariaDB Galera cluster, I simply created the proper config files and started my primary db server with the galera_new_cluster command (I'm running RHEL7). According to the documentation, at that point you should be able to run:
SHOW STATUS LIKE 'wsrep_cluster_size';
And see
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | 1 |
+--------------------+-------+
However, I see wsrep_cluster_size of zero with these other relevant values:
MariaDB [(none)]> show global status like 'wsrep%';
+--------------------------+----------------------+
| Variable_name | Value |
+--------------------------+----------------------+
| wsrep_cluster_conf_id | 18446744073709551615 |
| wsrep_cluster_size | 0 |
| wsrep_cluster_state_uuid | |
| wsrep_cluster_status | Disconnected |
| wsrep_connected | OFF |
| wsrep_local_bf_aborts | 0 |
| wsrep_local_index | 18446744073709551615 |
| wsrep_provider_name | |
| wsrep_provider_vendor | |
| wsrep_provider_version | |
| wsrep_ready | OFF |
| wsrep_thread_count | 0 |
+--------------------------+----------------------+
My settings in /etc/my.cnf.d/server.cnf are:
bind_address=172.28.7.15
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
wsrep_cluster_name="galera_cluster"
wsrep_cluster_address="gcomm://172.28.7.15,172.28.7.18,172.28.7.19"
wsrep_node_address=172.28.7.15
wsrep_node_name='node01'
wsrep_slave_threads=1
wsrep_certify_nonPK=1
wsrep_max_ws_rows=131072
wsrep_max_ws_size=1073741824
wsrep_debug=1
wsrep_convert_LOCK_to_trx=0
wsrep_retry_autocommit=1
wsrep_auto_increment_control=1
wsrep_drupal_282555_workaround=0
wsrep_causal_reads=0
wsrep_notify_cmd=
wsrep_sst_method=rsync
And I've confirmed that the variables are loaded using SHOW VARIABLES.
I feel like I'm following the documentation exactly and it's just not showing what I expect. The only warnings in logs are warnings about SSL not being set up - is that required?
You mentioned you didn't see any WSREP logs in /var/log/mariadb/mariadb.log. Perhaps wsrep_on option is set to OFF. Try setting it to ON.
Lots of documentation assumes MariaDB Galera 10.0. But in 10.1 and higher, wsrep_on defaults to OFF.
Default Value: OFF (>= MariaDB 10.1), ON (<= MariaDB Galera Cluster 10.0)
https://mariadb.com/kb/en/mariadb/galera-cluster-system-variables/#wsrep_on
For Centos 7, edit your /etc/my.cnf file and
setenforce 0
write it on your all nodes.
Then start your cluster and connect nodes.
I have to make filter, this is my code:
octave:1> x=randn(500);
octave:2> b=fir1(50,0.2,'stop',boxcar(51));
error: `boxcar' undefined near line 2 column 22
error: evaluating argument list element number 4
What is problem here?
Also Low-pass filter is 'low' or 'stop' in Octave?
#edit
New error:
octave:2> b=fir1(50,0.2,'stop');
error: `fir1' undefined near line 2 column 3
is it possible I don't have something?
You probably need to load the package (see the Octave FAQ). Run pkg list to confirm the package is installed and whether it is loaded. It will display a table of all installed packages with an asterisk in front of the packages that are loaded. You won't be able to use packages that are not loaded. See the following Octave session.
octave> partcnt (7) # does not work because function is not in search path
error: `partcnt' undefined near line 9 column 1
octave> pkg list # show list of packages
Package Name | Version | Installation directory
---------------+---------+-----------------------
control | 2.4.1 | /home/carandraug/octave/control-2.4.1
general | 1.3.2 | /home/carandraug/octave/general-1.3.2
generate_html | 0.1.5 | /home/carandraug/octave/generate_html-0.1.5
image | 2.1.0 | /home/carandraug/octave/image-2.1.0
miscellaneous | 1.2.0 | /home/carandraug/octave/miscellaneous-1.2.0
optim | 1.2.2 | /home/carandraug/octave/optim-1.2.2
signal | 1.2.0 | /home/carandraug/octave/signal-1.2.0
specfun | 1.1.0 | /home/carandraug/octave/specfun-1.1.0
struct | 1.0.10 | /home/carandraug/octave/struct-1.0.10
octave> pkg load miscellaneous # load package
octave> partcnt (7) # it works now
ans = 15
octave> pkg list # confirm that package is loaded (* in front of the name)
Package Name | Version | Installation directory
---------------+---------+-----------------------
control | 2.4.1 | /home/carandraug/octave/control-2.4.1
general *| 1.3.2 | /home/carandraug/octave/general-1.3.2
generate_html | 0.1.5 | /home/carandraug/octave/generate_html-0.1.5
image | 2.1.0 | /home/carandraug/octave/image-2.1.0
miscellaneous *| 1.2.0 | /home/carandraug/octave/miscellaneous-1.2.0
optim | 1.2.2 | /home/carandraug/octave/optim-1.2.2
signal | 1.2.0 | /home/carandraug/octave/signal-1.2.0
specfun | 1.1.0 | /home/carandraug/octave/specfun-1.1.0
struct | 1.0.10 | /home/carandraug/octave/struct-1.0.10
octave> pkg unload all # unload the package
octave> partcnt (7) # no longer works because it was removed from path
error: `partcnt' undefined near line 15 column 1
octave> pkg list
Package Name | Version | Installation directory
---------------+---------+-----------------------
control | 2.4.1 | /home/carandraug/octave/control-2.4.1
general | 1.3.2 | /home/carandraug/octave/general-1.3.2
generate_html | 0.1.5 | /home/carandraug/octave/generate_html-0.1.5
image | 2.1.0 | /home/carandraug/octave/image-2.1.0
miscellaneous | 1.2.0 | /home/carandraug/octave/miscellaneous-1.2.0
optim | 1.2.2 | /home/carandraug/octave/optim-1.2.2
signal | 1.2.0 | /home/carandraug/octave/signal-1.2.0
specfun | 1.1.0 | /home/carandraug/octave/specfun-1.1.0
struct | 1.0.10 | /home/carandraug/octave/struct-1.0.10
The reason why the general package is loaded automatically when you load miscellaneous, is because general is a dependency of miscellaneous.
From the man page:
usage: b = fir1(n, w [, type] [, window] [, noscale])
You probably want e.g.:
b=fir1(50, [0.1 0.2], 'stop');