Comments (14)
Try adding ":" to constants.NXAGENT_VERSION_SEP:
NXAGENT_VERSION_SEP = ".-~:"
If this doesn't help, what's the output of constants.NXAGENT_VERSION_COMMAND
(the
command is most likely “dpkg-query -W --showformat='${Version}' nxagent”)?
Original comment by [email protected]
on 9 Jul 2009 at 9:47
from neatx.
Have the same problema, edited
/usr/lib/python2.6/dist-packages/neatx/constants.py
and back work! :-)
Anyone can commit this change !?
Original comment by [email protected]
on 9 Jul 2009 at 3:10
from neatx.
Ah. I see the issue:
# dpkg-query -W --showformat='${Version}' nxagent
1:3.3.0-6-0ubuntu1~hardy1
It looks like that version detection really is just too fragile
Original comment by kormat
on 9 Jul 2009 at 6:54
from neatx.
The fix is to manually set the nx protocol version (e.g. 3.3.0) in neatx.conf:
[global]
nx-protocol-version = 3.3.0
Original comment by kormat
on 9 Jul 2009 at 6:55
from neatx.
this one does not help:
[global]
nx-protocol-version = 3.3.0
still got the error. The hack for me was to change the command from
dpkg-query -W --showformat='${Version}' nxagent
to
echo 3.3.0 :)
Original comment by [email protected]
on 9 Jul 2009 at 10:04
from neatx.
Hey, I committed a fix to make the nx-protocol-version config entry be parsed
properly, i'm wondering if it means you don't need to do the "echo 3.3.0"
thing. If
you get a chance to test, let me know. Thanks.
Original comment by kormat
on 14 Jul 2009 at 9:56
from neatx.
In constants.py, why not detect nx version the same way that freenx does? It
would be
more generic than finding the correct line for dpkg, rpm, pacman, equery (in my
case). Something like this works fine here:
NXAGENT_VERSION_COMMAND = ("strings %s|grep 'NXAGENT - Version' | sed -e
's/[^0-9.]*//'" % NXAGENT_PKGNAME)
Original comment by [email protected]
on 18 Jul 2009 at 12:35
from neatx.
The reason we haven't done that is because it's horrible -)
Original comment by kormat
on 20 Jul 2009 at 5:06
from neatx.
Hi, I also use a current check-out on Ubuntu.
dpkg-query -W --showformat='${Version}' nxagent
1:3.3.0-6-0ubuntu1
and it doesn’t work
Started
2009-07-22 17:29:39,926: nxserver-login pid=31777 ERROR Caught exception
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/neatx/cli.py", line 58, in Main
self.cfg = config.Config(constants.CONFIG_FILE)
File "/usr/lib/python2.6/dist-packages/neatx/config.py", line 119, in __init__
constants.PROTOCOL_VERSION_DIGITS)
File "/usr/lib/python2.6/dist-packages/neatx/utils.py", line 815, in ParseVersion
parts = split_fn(version)
File "/usr/lib/python2.6/dist-packages/neatx/utils.py", line 769, in <lambda>
return lambda ver: re_split(ver, count)[:count]
TypeError: expected string or buffer
EOF on stderr, exiting
The « 1: » in the front is the epoch. cf.
http://www.debian.org/doc/debian-policy/ch-
controlfields.html#s-f-Version
Original comment by towolf
on 22 Jul 2009 at 3:52
from neatx.
Yeah, basically the auto-version-detection is badly broken. The best thing to
do (and
hence it's in the INSTALL file) is to manually set the nx protocol version in
neatx.conf.
Original comment by kormat
on 22 Jul 2009 at 4:28
from neatx.
Oops, actually INSTALL doesn't say that, what i did instead was make the
example conf
contain the correct setting. I've just sent a patch to remove the automatic
version
detection, which should fix this permanently.
Original comment by kormat
on 22 Jul 2009 at 4:42
from neatx.
Patch committed. The protocol version now defaults to 3.3.0 (see
lib/constants.py),
and is overridable via neatx.conf
Original comment by kormat
on 27 Jul 2009 at 9:29
- Changed state: Fixed
from neatx.
Hi,
this traceback is still present on Fedora 11 although all places that mention
protocol version have the same value. nx package is nxagent for fedora. I'm
using svn
revision 40.
# rpm -q nx
nx-3.3.0-35.fc11.i586
# grep protocol /etc/neatx.conf
nx-protocol-version = 3.3.0
# grep protocol -i /usr/lib/python2.6/site-packages/neatx/constants.py
PROTOCOL_VERSION_DIGITS = [2, 2, 4]
DEFAULT_NX_PROTOCOL_VERSION = "3.3.0"
Also in lib/constants.py:
NXAGENT_PKGNAME = "nxagent"
This should be only "nx" for Fedora if it matters.
Original comment by [email protected]
on 12 Aug 2009 at 1:29
from neatx.
My traceback is:
Aug 12 09:20:03 hp-dl585g2-01 nxserver-login-wrapper[20816]: ValueError: invalid
literal for int() with base 10: '0nuse'
Aug 12 09:20:39 hp-dl585g2-01 nxserver-login-wrapper[20838]: 2009-08-12
09:20:39,630:
nxserver-login pid=20841 ERROR Caught exception
Aug 12 09:20:39 hp-dl585g2-01 nxserver-login-wrapper[20838]: Traceback (most
recent
call last):
Aug 12 09:20:39 hp-dl585g2-01 nxserver-login-wrapper[20838]: File
"/usr/lib/python2.6/site-packages/neatx/cli.py", line 58, in Main
Aug 12 09:20:39 hp-dl585g2-01 nxserver-login-wrapper[20838]: self.cfg =
config.Config(constants.CONFIG_FILE)
Aug 12 09:20:39 hp-dl585g2-01 nxserver-login-wrapper[20838]: File
"/usr/lib/python2.6/site-packages/neatx/config.py", line 134, in __init__
Aug 12 09:20:39 hp-dl585g2-01 nxserver-login-wrapper[20838]:
constants.PROTOCOL_VERSION_DIGITS)
Aug 12 09:20:39 hp-dl585g2-01 nxserver-login-wrapper[20838]: File
"/usr/lib/python2.6/site-packages/neatx/utils.py", line 820, in ParseVersion
Aug 12 09:20:39 hp-dl585g2-01 nxserver-login-wrapper[20838]: value =
int(parts[idx])
Aug 12 09:20:39 hp-dl585g2-01 nxserver-login-wrapper[20838]: ValueError: invalid
literal for int() with base 10: '0nuse'
Original comment by [email protected]
on 12 Aug 2009 at 1:30
from neatx.
Related Issues (20)
- NX> 500 Internal error (just after user logs in) HOT 1
- Alt-Gr key keeps locked - keyboard scramble HOT 1
- Cannot start session
- DHCP vs Static HOT 3
- Incorrect using of su
- Unable to start session:
- The Mac OSX client can not connect to my server. HOT 2
- Tarball does not include RPM files for 'rpmbuild -ta'
- neatx.spec file has version 0.1, not 0.3.1, and other issues
- No multiple keyboard layout support HOT 4
- ib HOT 1
- "Authentication failed for user" if using fish shell
- Text is not recognised in Gnome/gtk programs in Ubuntu 10.10 HOT 2
- client crashing when trying to use shadow mode
- d /var/lib HOT 1
- After Python 2.6 upgrade on Ubuntu 10.10 log in fails
- var/lib HOT 1
- Reconnecting to session hangs with "Session didn't become ready in time" message HOT 2
- Create a distfile for to permit the ports creation for freebsd HOT 2
- Removing FreeNX To Install Neatx
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neatx.