Code Monkey home page Code Monkey logo

Comments (9)

dkrystki avatar dkrystki commented on May 23, 2024 1

I didn't expect rosetta to be installed on non M1 machines.
I'll try fixing that in the next release.

Until then to make it work:

  1. Uninstall reloadium plugin
  2. Remove ~/.reloadium/package
  3. Remove /usr/libexec/rosetta/
  4. Install reloadium plugin

from reloadium.

dkrystki avatar dkrystki commented on May 23, 2024 1

Fixed in reloadium 0.9.5 and PyCharm plugin 0.9.0

from reloadium.

dkrystki avatar dkrystki commented on May 23, 2024

Hey @dirko , thanks for submitting this.
Reloadium plugin installs reloadium package to <home>/.reloadium/package directory, could you verify whether this directory exists and contains a package for the python version you are using?
If not could you please reinstall the plugin and submit the idea.log file?

If the package is correctly installed could you go to <home>/.reloadium/package/<python version>/reloadium and add the following lines at the beginning of the __init__.py file?

import sys
print(sys.path)

Then run your script using the Reloadium plugin and paste the output here?

from reloadium.

dirko avatar dirko commented on May 23, 2024

The ~/.reloadium/package directory exists and contains 3.10, 3.9, and version.txt. version.txt contains 0.9.4. 3.10 contains reloadium and reloadium-0.9.4.dist-info.

When I print the sys path I get:

['/Users/<user>/Programming/python/<project>/tests', '/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm', '/Users/<user>/.reloadium/package/3.10', '/Users/<user>/Programming/python/<project>', '/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_display', '/Users/<user>/miniconda3/envs/rel-test/lib/python310.zip', '/Users/<user>/miniconda3/envs/rel-test/lib/python3.10', '/Users/<user>/miniconda3/envs/rel-test/lib/python3.10/lib-dynload', '/Users/<user>/miniconda3/envs/rel-test/lib/python3.10/site-packages', '/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_matplotlib_backend']

When I print out the error in __utils__.py, I get

dlopen(/Users/<user>/.reloadium/package/3.10/reloadium/corium.cpython-310-darwin.so, 2): no suitable image found.  Did find:
	/Users/<user>/.reloadium/package/3.10/reloadium/corium.cpython-310-darwin.so: mach-o, but wrong architecture
	/Users/<user>/.reloadium/package/3.10/reloadium/corium.cpython-310-darwin.so: mach-o, but wrong architecture

from reloadium.

dkrystki avatar dkrystki commented on May 23, 2024

@dirko
Is it an M1 machine?

from reloadium.

dirko avatar dirko commented on May 23, 2024

No, that is the strange part: Processor: 2.3 GHz Quad-Core Intel Core i5.

from reloadium.

dkrystki avatar dkrystki commented on May 23, 2024

@dirko
I might be onto something. Does this directory exist on your computer /usr/libexec/rosetta/ ?
I know you're not an M1 user and it's unlikely that you have rosetta installed but existence of this directory would explain this behavior since this is how currently the M1 machines are identified in the code.

from reloadium.

dirko avatar dirko commented on May 23, 2024

Yes it exists, contains debugserver oahd oahd-helper oahd-root-helper runtime runtime_t8027 translate_tool. I'm unsure why I have it installed, I can't remember specifically installing it -- seems to be from Jan 1 2020.

from reloadium.

dirko avatar dirko commented on May 23, 2024

Great thanks! I'm unable to remove the directory (even with sudo), so will wait for a new version of the package. Looking forward to it, this plugin looks like a great tool.

from reloadium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.